//package com.robot.repository;
//
//import com.robot.model.FireAlarm;
//import org.springframework.data.jpa.repository.JpaRepository;
//import org.springframework.data.jpa.repository.Query;
//import org.springframework.stereotype.Repository;
//
//import java.util.List;
//
//@Repository
//public interface FireAlarmRepository extends JpaRepository<FireAlarm, Long> {
//
//    List<FireAlarm> findByCompanyAndYearAndMonth(String company, Integer year, Integer month);
//
//    @Query("SELECT f FROM FireAlarm f WHERE f.company = ?1 AND f.year = ?2")
//    List<FireAlarm> findByCompanyAndYear(String company, Integer year);
//}
